<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script type="text/javascript">
   $(document).ready(function(){
      //alert("ready");
      $("#uploadListTable tr").mouseover(function(){
         $(this).css("background","grey");
         $(this).click(function(){
            //alert($(this).children().eq(0).text());
            var itemNo = $(this).children().eq(0).text();
            location.href="${initParam.root}item/showItemContent.moja?itemNo="+itemNo+"&memberId=${sessionScope.mvo.memberId}";
         });
      });
      $("#uploadListTable tr").mouseleave(function(){
         $(this).css("background","white");
      });
   });
</script>
<div id="mainCss" align="center">
<h1 align="center">내가 등록한 상품 리스트</h1>
	<table border="2" cellpadding="5"  id="uploadListTable">
<thead>
	<th>상품번호</th><th>상품명</th><th>상세정보</th><th>가격</th>
</thead>
<tbody>
<c:forEach items="${requestScope.list }" var="itemVO">
<tr>
	<td>${itemVO.itemNo}</td>
	<td>${itemVO.itemName}</td>
	<td>${itemVO.itemInfo}</td>
	
	<td>${itemVO.itemPrice}</td> 

</tr>
</c:forEach>
</tbody>

</table>   
</div>
 